package com.woniuxy.controller;

import com.woniuxy.service.MenuService;
import com.woniuxy.util.ResponseData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.text.ParseException;

/**
 * @author HP
 * @version 1.0
 * @project
 * @description
 * @date 2024/4/11 17:04:24
 */
@RestController
@RequestMapping("/menu")
public class MenuController {

    @Autowired
    private MenuService menuService;

    @GetMapping("/queryMenu")
    ResponseData<?> queryAllMenus() throws ParseException {
        return menuService.queryAllMenus();
    }

}
